﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YunShop_WebAPI.Model
{
    /// <summary>
    /// 结果类(电子会员卡)
    /// 
    /// </summary>
    public class Result_Member
    {
        private int _status;
        private string _msg;
        private object _data;

        /// <summary>
        /// 状态[0-接口异常,1-成功,2-失败]
        /// </summary>
        public int status { get { return _status; } set { _status = value; } }
        /// <summary>
        /// 消息
        /// </summary>
        public string msg { get { return _msg; } set { _msg = value; } }
        /// <summary>
        /// 数据
        /// </summary>
        public object data { get { return _data; } set { _data = value; } }

        /// <summary>
        /// 初始化
        /// </summary>
        public Result_Member() { }

        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="_status">状态[0-接口异常,1-成功,2-失败]</param>
        /// <param name="_message">消息</param>
        public Result_Member(int _status, string _message)
        {
            this.status = _status;
            this.msg = _message;
        }

        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="_status">状态[0-接口异常,1-成功,2-失败]</param>
        /// <param name="_message">消息</param>
        /// <param name="_data">数据</param>
        public Result_Member(int _status, string _message, object _data)
        {
            this.status = _status;
            this.msg = _message;
            this.data = _data;
        }
    }    
}
